package com.pig4cloud.pig.order.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.pig4cloud.pig.order.api.dto.TrOrder;
import com.pig4cloud.pig.order.mapper.OrderMapper;
import com.pig4cloud.pig.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, TrOrder> implements OrderService {


	@Override
	public Page<TrOrder> selectOrderPage(Page<TrOrder> page, TrOrder order, Long currentGuideId) {
		return baseMapper.selectOrderPage(page,order,currentGuideId);
	}
	@Override
	public List<TrOrder> selectOrderList(TrOrder order, Long currentGuideId) {
		return baseMapper.selectOrderList(order,currentGuideId);
	}

	@Override
	public TrOrder selectByIdWithTrip(Long orderId) {
		return baseMapper.selectByIdWithTrip(orderId);
	}

	@Override
	public int updateStatusById(TrOrder order1) {
		return baseMapper.updateStatusById(order1);
	}
}
